{template header}

<div id="nav">
	<a href="index.php">{$_DCACHE['settings']['bbname']}</a>
	{$navDevider}
	{$lang['global_plugin_name']}
</div>

<div id="wrap" class="wrap with_side s_clear">
<!--content should appear below-->
	<div class="side">
		<h2>{$lang['string_basic_info']}</h2>
		<div class="sideinner">
			<ul class="tabs">
				<li>{$lang['global_plugin_name']}</li>
				<li>{$lang['string_version']}: {$sr_plugincenter_version}</li>
				<hr class="shadowline"/>
				<li id="exchange_rule" onmouseover="showMenu(this.id)">
					<strong>{$p_center_array['d_ext_config'][$p_center_array['d_extid']]['title']}</strong>
					<!--{if $p_center_array['allow_p_to_d']}-->&lt;<!--{else}-->x<!--{/if}-->--<!--{if $p_center_array['allow_d_to_p']}-->&gt;<!--{else}-->x<!--{/if}-->
					<strong>{$p_center_array['p_ext_config'][$p_center_array['p_extid']]['name']}</strong>
				</li>
				<div class="popupmenu_popup" id="exchange_rule_menu" style="display: none">
					{$exchange_rule}
				</div>
				<hr class="shadowline"/>
				<li><strong>{$p_center_array['d_ext_config'][$p_center_array['d_extid']]['title']}: {$p_user_array['d_ext'][$p_center_array['d_extid']]}</strong></li>
				<!--{loop $p_user_array['p_ext'] $extid $ext}-->
					<!--{if $p_center_array['p_ext_config'][$extid]['enabled'] == 1}-->
						<li>{$p_center_array['p_ext_config'][$extid]['name']}: {$p_user_array['p_ext'][$extid]}</li>
					<!--{/if}-->
				<!--{/loop}-->
				<li>{$lang['string_exp']}: {$p_user_array['exp']}</li>
			</ul>
		</div>
		<h2>{$lang['string_navigator']}</h2>
		<div class="sideinner">
			<ul class="tabs">
				<li><a href="{$pluginUrl}&module=index">{$lang['global_plugin_name']}{$lang['string_homepage']}</a></li>
				<hr class="shadowline"/>
				<li><a href="{$copyrightUrl}" target="_blank" class="lightlink">{$lang['copyright']}</a></li>
			</ul>
		</div>
	</div>
	
	<div class="main">
		<div class="content">
			<h1>{$lang['global_plugin_name']}{$lang['string_homepage']}</h1>
			<a id="fjump" href="$indexname" class="dropmenu" onmouseover="showMenu(this.id)">$bbname</a>
			<div class="notice">{$lang['index_welcome_message']}</div>
			<div class="popupmenu_popup" id="fjump_menu" style="display: none">
				Testing text.
			</div>
			
			<!--{if ($discuz_uid)}-->
				<div class="datalist">
					<table cellspacing="0" cellpadding="0" class="datatable">
						<thead class="colplural">
							<tr>
								<td style="font-weight: bold">{$lang['string_ext_name']}</td>
								<td style="font-weight: bold">{$lang['string_ext_value']}</td>
								<td style="font-weight: bold">{$lang['string_ext_rate']}</td>
								<td style="font-weight: bold">{$lang['string_ext_allow_in']}</td>
								<td style="font-weight: bold">{$lang['string_ext_allow_out']}</td>
							</tr>
						</thead>
						<tbody>
						<!--{loop $p_user_array['p_ext'] $extid $ext}-->
							<tr>
								<td><!--{if ($p_center_array['p_extid'] == $extid)}-->*<!--{/if}-->{$p_center_array['p_ext_config'][$extid]['name']}</td>
								<td>{$p_user_array['p_ext'][$extid]}</td>
								<td>{$p_center_array['p_ext_config'][$extid]['rate']}</td>
								<td>{$p_center_array['p_ext_config'][$extid]['allow_in']}</td>
								<td>{$p_center_array['p_ext_config'][$extid]['allow_out']}</td>
							</tr>
						<!--{/loop}-->
						</tbody>
					</table>
				</div>
			<!--{else}-->
				<div class="notice">{$lang['index_not_logged_in']}</div>
			<!--{/if}-->
		</div>
	</div>

</div>

{template footer}